<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>表单</title>
</head>
<body>
<form action="/" method="post">
    <table>
        <tr>
            <td>id</td>
            <td>username</td>
            <td>password</td>
            <td >操作</td>
        </tr>
        <tr th:each="admin:${admins}">
            <td th:text="${admin.id}"></td>
            <td th:text="${admin.userName}"></td>
            <td th:text="${admin.password}"></td>
            <td><a th:href="@{/delete}">删除</a></td>
        </tr>
    </table>
</form>
</body>
</html>